package cn.byapps.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.byapps.entity.User;

@Controller
public class IndexController {

	@RequestMapping
	public String Index() {
		return "index";
	}
	
	@ResponseBody
	@RequestMapping(value="hello",method = RequestMethod.POST)
	public User getUser() {
		return new User();
	}
}
